<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateChampionshipsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('championships', function (Blueprint $table) {
            $table->increments('id');
            $table->string('city', 50)->comment('城市码');
            $table->string('title', 50)->commnet('标题');
            $table->datetime('game_datetime')->comment('比赛时间');
            $table->datetime('end_game_datetime')->comment('比赛结束时间');
            $table->string('address', 300)->commnet('比赛地点');
            $table->datetime('signup_datetime')->comment('报名截止时间');
            $table->string('signup_price', 100)->comment('报名费')->default('0')->nullable();
            $table->string('prize', 2000)->comment('奖品')->nullable();
            $table->string('desc', 6000)->comment('赛事介绍')->nullable();
            $table->string('remark', 300)->comment('简介')->nullable();
            $table->string('result', 6000)->comment('结果')->nullable();
            $table->integer('view')->comment('浏览量')->default(0);
            $table->integer('organizer')->comment('组织者');
            $table->integer('status')->comment('状态')->default(10);

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('championships');
    }
}
